function lowered = lowerCase(str)
  % Convert capitol letters to lower case
  % Note: presently, only works if str is length 1

    lowered = regexprep(str, str(regexp(str, '[A-Z]')),...
                        '${lower(str(regexp(str, ''[A-Z]'')))}');
end

